import React from "react";
import {
  Navigate,
  Route,
  HashRouter as Router,
  Routes,
} from "react-router-dom";
import Login from "@/pages/login";
import Home from "@/pages/home";

const App: React.FC = () => (
  <Router>
    <Routes>
      <Route path="/login" element={<Login />}></Route>
      <Route path="/" element={<Home />}></Route>
      <Route path="*" element={<Navigate to="/" />} />
    </Routes>
  </Router>
);

export default App;
